home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY3 / POV301 / povray3 / povscn / level1 / pov / mapper < prev    next >
Text File  |  1995-11-08  |  921b  |  44 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Image map example
  3. // File by Alexander Enzmann
  4. // NOTE: Requires "test.gif"
  5.  
  6. #version 3.0
  7. global_settings { assumed_gamma 2.2 }
  8.  
  9. #include "colors.inc"
  10.  
  11. #declare Bi = 2
  12.  
  13. #declare Texture0 = /* Planar image map */
  14. texture {pigment{image_map { gif "test.gif" map_type 0 once interpolate Bi } } }
  15.  
  16. #declare Texture1 = /* Spherical image map */
  17. texture {pigment{image_map { gif "test.gif" map_type 1 interpolate Bi } } }
  18.  
  19. sphere { <0, 0, 0>, 1
  20.    texture { Texture1 }
  21.    scale 10
  22.    rotate -90*y
  23.    translate <-12, 0, 20>
  24. }
  25.  
  26. plane {
  27.    z, 0
  28.    clipped_by {box { <0, 0, -1>, <1, 1, 1> } }
  29.    texture { Texture0 }
  30.    translate <-0.5, -0.5, 0>
  31.    scale 20
  32.    rotate <20, 30, 0>
  33.    translate <12, 0, 20>
  34. }
  35.  
  36. camera {
  37.    location  <0, 0, -60>
  38.    direction <0, 0,   1>
  39.    up        <0, 0.5, 0>
  40.    right     <0.6666, 0, 0>
  41. }
  42.  
  43. light_source { <0, 300, -200> colour White }
  44.